package com.wing.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wing.user.model.entity.UserRole;
import com.wing.user.model.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author
 */
@Mapper
public interface UserRoleDao extends BaseMapper<UserRole> {

    /**
     * 角色的用户id列表
     *
     * @param userId 用户id
     * @return {@link List<Role>}
     */
    List<Role> roleListByUserId(Long userId);

}
